<template>
  <div class="boxxt">
    <van-nav-bar
      title="婚礼喜帖"
      left-text=""
      left-arrow
      @click-left="onClickLeft"
      :border="false"
    />
    <div class="boxxt-content">
      <div class="boxxt-content-music">
        <van-icon name="music-o" size="60" color="#CECECE" class="music" />
        <audio autoplay="" loop="">
          <source
            src="https://music.163.com/song/media/outer/url?id=3305969.mp3"
          />
        </audio>
      </div>
      <div class="boxxt-content-center">
        <div class="yuan"><span></span> <span></span></div>
        <div class="boxxt-content-text">
          爱意和珊珊的心事的婚礼，欢迎你来 参加
        </div>
        <div class="line"></div>
        <div class="boxxt-content-down"></div>
      </div>
      <div class="end">婚礼已结束</div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss">
.boxxt {
  display: flex;
  flex-direction: column;
  @-webkit-keyframes changeright {
    0% {
      -webkit-transform: rotate(0deg);
    }
    50% {
      -webkit-transform: rotate(180deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
    }
  }
  .music {
    margin: 40px 0 0 44px;
    -webkit-animation: changeright 3s linear infinite;
  }
  .van-nav-bar {
    line-height: 2.375rem;
    background-color: #1a1a1a;
    border: none;
  }
  .van-nav-bar__title {
    color: white;
    font-size: 32px;
  }
  .van-icon-arrow-left:before {
    color: white;
    font-size: 32px;
  }
  .van-nav-bar__content {
    margin: 30px 0px;
  }
  .boxxt-content {
    width: 750px;
    // height: 1365px;
    // height: 93.5%;
    flex: 1;
    background-color: white;
    padding-top: 40px;
    background-image: url(@/assets/img/home/Home-img/renwuimg/xtbjtutwo.png);
    background-repeat: no-repeat;
    background-size: 110% 110%;
    background-position: center center;
  }
  .boxxt-content-music {
    font-size: 38px;
    margin-left: 44px;
    margin-bottom: 100px;
  }
  .boxxt-content-center {
    width: 570px;
    height: 702px;
    background-color: green;
    margin: 0 auto;
    border-radius: 16px;
    padding-top: 40px;
    background: linear-gradient(227deg, transparent 4.5rem, white 0);
    position: relative;
  }
  .boxxt-content-center::before {
    content: "";
    position: absolute;
    right: 3px;
    top: -13px;
    background: gold;
    width: 92px;
    height: 128px;
    background: linear-gradient(121deg, transparent 50%, rgb(234, 188, 195) 0);
    transform: rotate(106deg);
    border-bottom-right-radius: inherit;
  }
  .boxxt-content-center .yuan {
    width: 200px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .boxxt-content-center span {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #cecece;
    mix-blend-mode: multiply;
    background-image: url(@/assets/img/home/Home-img/39.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .boxxt-content-center span:nth-child(2) {
    margin-left: -20px;
    background-image: url(@/assets/img/home/Home-img/38.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .boxxt-content-text {
    width: 418px;
    height: 62px;
    margin: 0 auto;
    font-size: 26px;
    margin-top: 40px;
    color: #cecece;
  }
  .line {
    width: 462px;
    height: 2px;
    border: 1px solid #cecece;
    margin: 80px auto;
  }
  .boxxt-content-down {
    width: 462px;
    height: 262px;
    background-color: #cecece;
    margin: 0 auto;
    background-image: url(@/assets/img/home/Home-img/renwuimg/xtonecenter.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .end {
    width: 670px;
    height: 88px;
    background-color: #63d197;
    border-radius: 50px;
    color: white;
    font-size: 28px;
    text-align: center;
    margin: 0 auto;
    line-height: 88px;
    margin-top: 290px;
  }
}
</style>